//
//  HNaviBar.h
//  BagsProject
//
//  Created by sunsoft on 2017/3/14.
//  Copyright © 2017年 sunnsoft. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface HNaviBar : UIView

@property (nonatomic,strong) UIButton * leftButton;
@property (nonatomic,strong) UIButton * rightButton;
@property (nonatomic,strong) UILabel * titleLabel ;


+(instancetype)customNaviBarWithTitle:(NSString *)title aimView:(UIView *)aimView;

+(instancetype)customNaviBarWithTitle:(NSString *)title andLeftEvent:(void(^)(UIButton * leftSender))event aimView:(UIView *)aimView;

-(void)setButtonImage:(UIImage *)image title:(NSString *)title andEvent:(void(^)(UIButton *sender))event isLeft:(BOOL)isLeft;

-(void)setRightEvent:(void(^)(UIButton * sender))event;

-(void)setLeftEvent:(void(^)(UIButton * sender))event;

@end
